Skip to content

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jul 10, 2023

  • Convert PyObject_DelAttr() and PyObject_DelAttrString() macros to functions.
  • Add PyObject_DelAttr() and PyObject_DelAttrString() functions to the stable ABI.
  • Replace PyObject_SetAttr(obj, name, NULL) with PyObject_DelAttr(obj, name).

📚 Documentation preview 📚: https://cpython-previews--106611.org.readthedocs.build/

* Convert PyObject_DelAttr() and PyObject_DelAttrString() macros to
  functions.
* Add PyObject_DelAttr() and PyObject_DelAttrString() functions to
  the stable ABI.
* Replace PyObject_SetAttr(obj, name, NULL) with
  PyObject_DelAttr(obj, name).
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@vstinner vstinner merged commit 1f2921b into python:main Jul 11, 2023
@vstinner vstinner deleted the obj_delattr2 branch July 11, 2023 09:38
@vstinner
Copy link
Member Author

Merged. Thanks for the review @serhiy-storchaka.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants